package com.itheima.demo5;

/**
 * @author zzw
 * @date 2025/4/25
 * @description 迪米特法则
 */
public class Client {
    public static void main(String[] args) {

        // 创建经纪人
        Agent agent = new Agent();
        // 创建明星
        Star star = new Star("刘德华");
        agent.setStar(star);
        // 创建粉丝
        Fans fans = new Fans("张三");
        agent.setFans(fans);
        Company company = new Company("黑马媒体公司");
        agent.setCompany(company);

        agent.meeting();
        agent.business();
    }
}
